package grails4springcloudgreenwich

import org.springframework.cloud.openfeign.FeignClient
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RequestMethod
import org.springframework.web.bind.annotation.RequestParam

@FeignClient(name = "G4GREENWICH")
interface G4Greenwich {

    @RequestMapping(method = RequestMethod.GET, value = "/helloWorld")//?username={username}
    String helloWorld(@RequestParam(name = "username", required = false) String username)
}